<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/jquery-3.3.1.min.js"></script>
</head>
<body>
    <div>index</div>
</body>
    <script>
        $.get("/api/book/1",{},function (data) {
            alert(JSON.stringify(data.name));
        });
    </script>
</html>